home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February (DVD) / PCWorld_2008-02_DVD.iso / v cisle / PHP / PHP.exe / EasyPHP-2.0b1-setup.exe / {app} / home / phpinfo.php < prev    next >
Encoding:
PHP Script  |  2006-11-03  |  2.1 KB  |  72 lines

  1. <?php
  2. ob_start();
  3. phpinfo();
  4. $info = ob_get_contents();
  5. ob_end_clean();
  6. preg_match_all("=<body[^>]*>(.*)</body>=siU", $info, $tab);
  7. $val_phpinfo = $tab[1][0];
  8. $val_phpinfo = str_replace(";", "; ", $val_phpinfo);
  9.  
  10. include("i18n.inc.php");
  11. ?>
  12. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  13.  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  14. <html>
  15. <head>
  16. <link rel="shortcut icon" href="images_easyphp/easyphp_favicon.ico" />
  17.  
  18. <style type="text/css"><!--
  19. body, td, th, h1, h2 {font-family: sans-serif;}
  20. pre {margin: 0px; font-family: monospace;}
  21. a:link {color: #000099; text-decoration: none;}
  22. a:hover {text-decoration: underline;}
  23. table {border-collapse: collapse;}
  24. .center, .center h1 {text-align: center;}
  25. .center table { margin-left: auto; margin-right: auto; text-align: left; border:solid 1px Black;}
  26. .center th { text-align: center; !important }
  27. td, th { border: 0px solid #525A73; font-size: 95%; vertical-align: baseline;}
  28. h1 {font-size: 180%;}
  29. h2 {font-size: 155%;}
  30. .p {text-align: left;}
  31. .e {background-color: #ccccff; font-weight: bold;}
  32. .h {background-color: #9999cc; font-weight: bold;}
  33. .v {background-color: #cccccc;}
  34. i {color: #666666;}
  35. hr {width: 600px; align: center; background-color: #cccccc; border: 0px; height: 1px;}
  36. //--></style>
  37.  
  38. <title>[EasyPHP] - phpinfo()</title>
  39. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  40. <link rel="stylesheet" href="styles.css" type="text/css" />
  41. </head>
  42.  
  43. <body>
  44.  
  45.  
  46. <?php
  47. include("functions.inc.php");
  48. include("header.inc.php");
  49. ?>
  50.  
  51. <div id="body">
  52.     <div class="container">
  53.         <br />
  54.         <?php
  55.         button("phpinfo", "phpinfo.php", "", "#7F7F7F", 0);
  56.         ?>
  57.         <br /><br />
  58.         
  59.         <div class="box_top"><img src="images_easyphp/box_top.gif" width="760" height="2" alt="--- top box ---" /></div>
  60.         <div class="box_body">
  61.             <div style="width:720px;margin:0px auto 0px auto;padding:10px 0px 10px 0px;">
  62.  
  63.             <?php echo $val_phpinfo ?>
  64.  
  65.             </div>
  66.         </div>
  67.         <div class="box_bottom"><img src="images_easyphp/box_bottom.gif" width="760" height="2" alt="--- bottom box ---" /></div>                            
  68.     </div>    
  69. </div>
  70.  
  71. </body>
  72. </html>